package cn.audit.service.zqmk;

import cn.audit.bean.pojo.PropertyList;
import cn.audit.repository.zqmk.PropertyListRepository;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Author: 钟琪
 * @Date: 2019/5/20 17:17
 */
@Service
public class PropertyListServiceImpl implements PropertyListService {
    @Resource
    private PropertyListRepository propertyListRepository;
    @Override
    public List<PropertyList> findAllByPropertyid(Integer id) {
        return propertyListRepository.findAllByPropertyid(id);
    }

    @Override
    public void deleteByPropertyid(Integer id) {
        propertyListRepository.deleteByPropertyid(id);
    }
}
